package com.dataextend.mapper.cluster;

import com.dataextend.entity.RolePermissionEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface RolePermissionDao {
    int add(RolePermissionEntity rolePermissionEntity);
    int update(RolePermissionEntity rolePermissionEntity);
    void delete(Long id);
    RolePermissionEntity queryById(Long id);
    List<RolePermissionEntity> list(RolePermissionEntity rolePermissionEntity);


    void deleteRoleId(Long roleId);
    void addRoleIdPermission(@Param("roleId") Long roleId, @Param("permissionId") Long permissionId);
}
